// 客户端主代码
#include <iostream>
#include <memory>
#include "client_cal.hpp"



void usage(char* cmd) { cout << "usager: " << cmd << "server_ip server_port\n"; }

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        usage(argv[0]);
        return 1;
    }
    std::unique_ptr<tcp_cal_client> ptc(new tcp_cal_client(argv[1], atoi(argv[2])));
    ptc->init();
    ptc->start();
    return 0;
}